package com.ruoyi.inform.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公告发布与编辑对象 inform
 * 
 * @author ruoyi
 * @date 2023-10-25
 */
public class Inform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告编号 */
    private Long newsId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    /** 公告内容 */
    @Excel(name = "公告内容")
    private String newsText;

    /** 发布者 */
    @Excel(name = "发布者")
    private String newsSender;

    /** 跳转页面 */
    @Excel(name = "跳转页面")
    private String newsRouter;

    /** 状态 */
    @Excel(name = "状态")
    private Long newsState;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }
    public void setNewsTime(Date newsTime) 
    {
        this.newsTime = newsTime;
    }

    public Date getNewsTime() 
    {
        return newsTime;
    }
    public void setNewsText(String newsText) 
    {
        this.newsText = newsText;
    }

    public String getNewsText() 
    {
        return newsText;
    }
    public void setNewsSender(String newsSender) 
    {
        this.newsSender = newsSender;
    }

    public String getNewsSender() 
    {
        return newsSender;
    }
    public void setNewsRouter(String newsRouter) 
    {
        this.newsRouter = newsRouter;
    }

    public String getNewsRouter() 
    {
        return newsRouter;
    }
    public void setNewsState(Long newsState) 
    {
        this.newsState = newsState;
    }

    public Long getNewsState() 
    {
        return newsState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsTime", getNewsTime())
            .append("newsText", getNewsText())
            .append("newsSender", getNewsSender())
            .append("newsRouter", getNewsRouter())
            .append("newsState", getNewsState())
            .toString();
    }
}
